home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000083_owner-ade-gcc_Fri Feb 16 03:22:05 1996.msg < prev    next >
Internet Message Format  |  1996-02-28  |  2KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0tnLQX-000gXaa; Fri, 16 Feb 96 03:22 EST
  4. Sender: owner-ade-gcc
  5. Received: from ernie.icslab.agh.edu.pl by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0tnLPq-000gXUC; Fri, 16 Feb 96 03:21 EST
  7. Received: (from kiskra@localhost) by ernie.icslab.agh.edu.pl (8.6.12/8.6.12) id JAA19723; Fri, 16 Feb 1996 09:20:49 +0100
  8. Date: Fri, 16 Feb 1996 09:20:48 +0100 (MET)
  9. From: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
  10. To: ADE GCC List <ade-gcc@ninemoons.com>
  11. cc: Amiga GCC List <amiga-gcc-port@nic.funet.fi>,
  12.         fleischr@IZFM.Uni-Stuttgart.DE
  13. Subject: Passing arguments in registers and stack checking/extension
  14. Message-ID: <Pine.SUN.3.91.960216091707.19476A-100000@ernie>
  15. MIME-Version: 1.0
  16. Content-Type: TEXT/PLAIN; charset=US-ASCII
  17. Sender: owner-ade-gcc@ninemoons.com
  18. Precedence: bulk
  19.  
  20.  
  21. *Note: Sorry if this is a repost. Pine hanged when I was sending this mail
  22. for the first time and I don't know if it hanged before or after the mail
  23. was sent*
  24.  
  25. I found a big problem with passing arguments in registers and using stack
  26. checking or extension simultaneously. 
  27.  
  28. Stack checking/extension code changes values of d0/d1/a0/a1, while these
  29. registers are used to pass arguments when using "-mregparm".
  30.  
  31. Matthias, would it be hard to redesign stack checking/extension in such a
  32. way that it preserved these registers?
  33.  
  34. If yes, I guess stack checking/extension code just wouldn't be generated
  35. for regargs functions... This would unfortunately make "-mregparm"
  36. unusable for stack-hungry programs, ie. most GNU tools.
  37.  
  38. / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
  39. | iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
  40. | http://student.uci.agh.edu.pl/~iskra                         |
  41. \ PGP public key available via Finger or WWW                   /